package com.liangzhong.events
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	public class AppEventDispatcher extends EventDispatcher
	{
		private static  var instance:AppEventDispatcher;
		
		public function AppEventDispatcher(target:IEventDispatcher=null)
		{
			super(target);
		}
		
		public static function getInstance():AppEventDispatcher 
		{
			if (instance == null) instance = new AppEventDispatcher( );
			return instance;
		}
		/**
		 * 
		 * @param type
		 * @param data
		 * 
		 */		
		public function dispatchEvt(type:String,data:Object = null):void
		{
			dispatchEvent(new NotifierEvent(type,data));
		}
		/**
		 * 
		 * @param e
		 * 
		 */		
		public function dispatchEventIs(e:Event):void
		{
			dispatchEvent(e);
		}
	}
}